package com.qingke.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qingke.mapper.FeedbackRecordMapper;
import com.qingke.pojo.FeedbackRecord;
import com.qingke.service.FeedbackRecordService;

@Service("feedbackRecordService")
public class FeedbackRecordServiceImpl implements FeedbackRecordService {
	@Resource
	private FeedbackRecordMapper  frDao;

	public int saveFeedbackRecord(FeedbackRecord record) {
		return frDao.insertSelective(record);
	}

	public int softDelete(int id) {
		return frDao.softDelete(id);
	}

	public FeedbackRecord getFeedbackRecordById(int id) {
		return frDao.selectByPrimaryKey(id);
	}

	public List<FeedbackRecord> listFeedbackRecord() {
		return frDao.listFeedbackRecord();
	}

}
